From: Florian Müllner Date: Tue, 9 Aug 2022 10:55:16 +0000 (+0200) Subject: status/network: Always notify icon-name on strength change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~117 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f6e889626ba56535f02accfa9d7a0ccbba21f249;p=gnome-shell.git status/network: Always notify icon-name on strength change We do want to update the best AP on strength change, in case we can switch to a better one. But even if we can't and the AP is unchanged, the icon should be updated to reflect the change. Part-of: --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 7a436ba7a..0bddc621a 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -714,8 +714,10 @@ const WirelessNetwork = GObject.registerClass({ this._accessPoints.add(ap); ap.connectObject( - 'notify::strength', () => this._updateBestAp(), - this); + 'notify::strength', () => { + this.notify('icon-name'); + this._updateBestAp(); + }, this); this._updateBestAp(); if (wasActive !== this.is_active)